Fix workout.change-date logic and js-lint-ing.