added json and fixed date.js