Use of javascript floor() instead of round() for time progression