Adjusted date in js file