changing js to