Moved some js to another file called activities.js