Ensure script is inside div.
Fix control input.

Use POST when requesting views.  Send whole doc for control documents.  Ensure script is inside div.
Enforce build of pages at pageshow.