some fixes to make esprima work with browser
added files for plugin demo