Fix #250 by using a different approach to find the url of the current script
Merge pull request #251 from codewithpassion/bugfix/250-determin-jsFileLocation

Fix #250 by using a different approach to find the url of the current script
Merge pull request #252 from codewithpassion/cleanup/move-evenemitter-into-cockpit

Changing from global variable to Cockpit as the event emitter
Merge remote-tracking branch 'upstream/master' into feature/249-add-heads-up-menu