edit breakTime function to use momentjs