Fixed formatting in JS