moved js to public folder