changed date.js to lib