[PATCH v5 4/6] jscript: Support nested scopes for functions defined inside.