Made the module work in npm