Use javascript for all date formatting