document.write('');

Object moved to here.