Convert to npm module and prep