Changing from global variable to Cockpit as the event emitter
Fixing detection of touchcontroller
Cleanup formatting of index.ejs
Merge pull request #252 from codewithpassion/cleanup/move-evenemitter-into-cockpit

Changing from global variable to Cockpit as the event emitter