improved error message for undefined variable in js eval statement.
improved error message for undefined variable in js eval statement, more clean fix.
Merge pull request #1766 from seven-phases-max/undefined-var-in-js-fix

Improved error message for undefined variable in js eval statement.