Fix accidental shadowing of js_GetErrorMessage

jsglue.cpp defines a function with the same name of the jsapi function it tries to wrap, causing a probable infinite loop.