Use window.Deferred to reach into global scope
Merge branch 'master' into gh-pages