{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/380","repository_url":"https://api.github.com/repos/elastic/elasticsearch-js","labels_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/380/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/380/events","html_url":"https://github.com/elastic/elasticsearch-js/issues/380","id":145627245,"number":380,"title":"Browser build doesn't work","user":{"login":"canvural","id":1574232,"avatar_url":"https://avatars.githubusercontent.com/u/1574232?v=3","gravatar_id":"","url":"https://api.github.com/users/canvural","html_url":"https://github.com/canvural","followers_url":"https://api.github.com/users/canvural/followers","following_url":"https://api.github.com/users/canvural/following{/other_user}","gists_url":"https://api.github.com/users/canvural/gists{/gist_id}","starred_url":"https://api.github.com/users/canvural/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canvural/subscriptions","organizations_url":"https://api.github.com/users/canvural/orgs","repos_url":"https://api.github.com/users/canvural/repos","events_url":"https://api.github.com/users/canvural/events{/privacy}","received_events_url":"https://api.github.com/users/canvural/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-04T09:14:37Z","updated_at":"2016-04-21T15:54:40Z","closed_at":null,"body":"I tried with tar release and installing from bower. Same result. `elasticsearch is not defined`\r\n\r\nThis is the minimal code i tried\r\n\r\n```html\r\n<html>\r\n  <body>\r\n    <script src=\"assets/js/elasticsearch.js\"></script>\r\n    <script type=\"text/javascript\">\r\n      var client = elasticsearch.Client({                                         \r\n       host: 'localhost:9200',\r\n       log: 'trace'\r\n      });\r\n    </script>\r\n  </body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/comments/212984618","html_url":"https://github.com/elastic/elasticsearch-js/issues/380#issuecomment-212984618","issue_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/380","id":212984618,"user":{"login":"dougmolineux","id":880444,"avatar_url":"https://avatars.githubusercontent.com/u/880444?v=3","gravatar_id":"","url":"https://api.github.com/users/dougmolineux","html_url":"https://github.com/dougmolineux","followers_url":"https://api.github.com/users/dougmolineux/followers","following_url":"https://api.github.com/users/dougmolineux/following{/other_user}","gists_url":"https://api.github.com/users/dougmolineux/gists{/gist_id}","starred_url":"https://api.github.com/users/dougmolineux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougmolineux/subscriptions","organizations_url":"https://api.github.com/users/dougmolineux/orgs","repos_url":"https://api.github.com/users/dougmolineux/repos","events_url":"https://api.github.com/users/dougmolineux/events{/privacy}","received_events_url":"https://api.github.com/users/dougmolineux/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:54:40Z","updated_at":"2016-04-21T15:54:40Z","body":"Perhaps try this:\r\n```var client = new elasticsearch.Client({\r\n  host: 'localhost:9200',\r\n  log: 'trace'\r\n});```\r\nhttps://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/quick-start.html"}}