Presumably this is all no longer necessary, since you return *chromeObject* after defining it.