add small fixes.
Fix date.js.