Update date.js

jslint errors without curly braces