Made options.date into javascript date