Changed main js name and package.json
Adapted npm for adaptive accounts
Replaced double quote with single quote
Refactored to use https and avoid external dependencies. Added some test