call to document.appendChild should be document.documentElement.appendChild
call to document.appendChild should be document.documentElement.appendChild

brianmcd/cloudbrowser-html5,Chiens/html5,papandreou/html5,aredridel/html5