Made an npm module, fixed regex bug