updating dependencies, pattern for sharing between node and browser