making a proper npm module