not introducing require and cjs without module.exports, added test
fixed formatting
removing esprima