Your JavaScript code can only have one global object, I don't see a reason to pass it in instead of finding it for you.
Your JavaScript code can only have one global object, I don't see a reason to pass it in instead of finding it for you.