Added JS date parse method