Give context to js functions instead of web frame.