remove trailing whitespace
add browserify support