Add conditionals around nodejs-only code and do not test using browserify - closes #9, #10