Update module.js

now replaces with regex