src/js/Script.cpp (reportError): Use stderr
src/js/bridge.cpp (ProxyObject::message_): Use JS_GetGlobalForObject instead of the obsoleted JS_GetGlobalObject