Javascript Remove First Element From String To Date