Created specialized module for browser. Added test.
Added scripts for node. Added test.
Merged with node branch