Wrap the JS code into SnowLib, modulization