Split JS from html in client side. Created public folder, organized code