I spent most of this week finding answer for the (I'm sure) obvious questions but with no luck so far.
I understand the MVC concept, I'm able to create a module admin settings page, but here is when I run out of knowledge.
I struggle with two problems and it would be amazing to get answers for them, even if I have to pay the price of getting lectured by the expert developers

So, let's dive into.
Problem 1.)
How can I load a javascript dynamically without touching the header or footer.tpl file?
Why would I do that way?
- Because if someone has a custom header file then I will overwrite the existing custom header (or footer) which is not a friendly approach.
I saw that OpenCart operates with a $scripts array but I couldn't find it and couldn't find a way to upload my little script.
Problem 2.)
How can I pass a variable, that I define and set on the admin page inside my modules settings page,to a javascript file?
This is where I gave up and turned to the community. After consuming a dangerously huge amount of coffee I can say, I don't know how to pass it.
Cheers,
G