final ScriptableObject prototype = configureClass(config, window);
if (config.isJsObject()) {
// for FF, place object with prototype property in Window scope
if (!getWebClient().getBrowserVersion().isIE()) {
final SimpleScriptable obj = config.getLinkedClass().newInstance();
prototype.defineProperty("__proto__", prototype, ScriptableObject.DONTENUM);
obj.defineProperty("prototype", prototype, ScriptableObject.DONTENUM); // but not setPrototype!
obj.setParentScope(window);
ScriptableObject.defineProperty(window, config.getClassName(), obj, ScriptableObject.DONTENUM);
// this obj won't have prototype, constants need to be configured on it again
configureConstants(config, obj);