add javascipt to transform date time