ECMA Script syntax check