refactor to put npm modules in one place