Javascript Create Html From String To Date