JS formatting fixes