Support use in browser, new gulp task generates JS client in dist/