refactor to remove all process.browser conditionals.