Reformat js code