replace require
update esprima version
add README.md unit test