Add behavior support to ScriptObject