chaging structure to create npm module