build browser client using index.js