log console on send_pagecontext

Attempt to discover why page context is killing cow_qs..
Seems 3rd party javascript libs my be the cause..
move JS function to panels