Build with browserify
Fix global leak
Consistent return