made activity tracker methods work on page:load and put spaces between commas and other syntax fixes in js file
This and previous commits fixes bug [Finishes: #74781454]