Update date.js

Minor tweaks suggested by JSHint.