Building an Online Activity Tracker in JavaScript