Added JavaScript counter and game timer events