change to Date.parse for cross browser functionality