Update es.js

Syntax error fixing
Fixed tests.
Merge branch 'erbecke-patch-1'