js reformat