bridge between node and browser modules