rename js and clear code