code: public Scriptable createObject(Context cx, Scriptable scope)
      {
          Scriptable newInstance = new NativeObject();
          newInstance.setPrototype(getClassPrototype());
          newInstance.setParentScope(getParentScope());
          return newInstance;
      }
docs: Creates new script object.
  The default implementation of {@link #construct} uses the method to
  to get the value for <tt>thisObj</tt> argument when invoking
  {@link #call}.
  The methos is allowed to return <tt>null</tt> to indicate that
  {@link #call} will create a new object itself. In this case
  {@link #construct} will set scope and prototype on the result
  {@link #call} unless they are already set.