Changes some variables from underscore to camelCase style.
Improves code readability by changing the use of line-endings.
Dries up the code.
Adds onActivate callback & event. (With according demo updates) Thanks to: @stefan-klikovits