Broken js code into separate files
Improved scoping for status handler
Improved scoping for slides handler
Improved scoping for counter