Fixing JS errors on cloud/index.html