rename shell.js to index.js
fixed RegExp usage