Changing code to comply with nodejs and npm standards