Exposed a basic 'completed' method

Patched to include a completed function surfaced through
window.respond.completed. This is slightly evil because I change this
reference to point to my own code, a bit like the old YouTube method.