Load Javascript without using HTMLSnippet widget

Hi, I need to add a Javascript code that must be loaded/embedded to the application when starts. The script will have to run after user is successfully authenticated with LinkedIn credentials. By using HTMLSnippet, I have added Signin with linkedIn button provided by LinkedIn Javascript API. However, when I add another Javascript code, with a method that must run when user is successfully authenticated, it not working. LinkedIn Javascript API has an onLoad keyword which can be assigned a method (e.g. onLoad: testLogin) that is called when the API loads. With Mendix, the onLoad keyword doesn't seem to work. Any help is appreciated.
1 answers

Can't you add it in your theming?