Converted module to javascript
Version bump
Added default `base` parameter