JS file formatting fixes