Fix accidental shadowing of js_GetErrorMessage
Merge pull request #69 from mbrubeck/loop-fix

Fix accidental shadowing of js_GetErrorMessage