update datetime picker and parse javascript to coffee