Avoid global variables
Don't benchmark and log
Change API, provide package.json file
Add dist files