update JS date