Clean some formatting in js