Separate node.js and browser targetted JavaScript