Trying to fix date issue
Fixed the JS