Refactoring to be able to include it as an npm module
Refactoring to be able to include it as an npm module
Refactoring to be able to include it as an npm module