Fixed bundle.sh to work with newer browserify.
Adapted bundle.js and test pages along.