add code for browser button and uncompressed gather.js code