Moving js to public