renemed js acoording JQuery code style