modify for browser
add view.js and init
add expect.js