Shouldn't it be this.balance ?
var account = {
balance: undefined,
deposit: function(amount) {
return balance += amount;
}...
}