convert this project into simple node module