Updated time formatting JS