removed jQuery dependancy from time-to-ms