Little javascript fix to timesheets