fixed formatting in js