move form js to browser.js