In node.js: Export a function that builds the bowser object instead of trying to dereference navigator.userAgent, which probably doesn't exist.