Made it npm friendly