Javascript port of kytrinyx's 'timetress' Ruby Gem as a node module