Fixed JavaScript error when loading timepicker script.