Moved script to public/js