Uncaught TypeError:Cannot read property path issue

I have an HTML page with an iframe similar to this: