Time: Rewrite javascript, calling getDateFromString to get date object, add timer