build js for browser

generate js can run in browser