Fix ordering of JS
Merge pull request #101 from SamLau95/sam/fix-timer

Fix ordering of JS