Updated dependencies, and switched code to detect browser vs node.js. Not done and good yet