Add build when.js for browser.