Make options in context when calling targetOrigin function

Was causing a `Uncaught TypeError: Cannot read property 'targetOrigin' of undefined` exception on load.