Restructuring for NPM package project based use