mine.js copied from @creationix's module, reformatted
upgrade astw to use esprima instead of esprima-six