Issue 545: Code cleanup

https://code.google.com/p/esprima/issues/detail?id=545

Removes unused variables, adds in missing semicolons and removes duplicate test