Improvements to the code for disabling JSAPI compiler warnings.