[Runtime] Fix wrong write of variable name on js.

Fix it.
Merge pull request #2009 from CooderIan/fix_wrong_writing

[Runtime] Fix wrong write of variable name on js.