for(var prop in pasta) {
document.write(prop + ' = ' + pasta[prop] + '
');
}