safer comparison
removed if{}
explicitely require buffer for browserify
test with testling