Simple time tracking in javascript using localstorage in a html5 page.