Remove usage of JS_THIS_OBJECT