change js to main