updated javascript for time since