added the date.js(from an earlier commit)