Base js file reformat