fixed a few minor bugs cleaned up the code

-hid counters in event and timeline functions
-ran jshint, jscs cleaned up code