var UsersData = [];
var UsersObj = {id: i, name: '', email: ''};
var AllUsers = {
777: {id: 777, name: "", email: ""},
123: {id: 123, name: "", email: ""},
}
function AddUser(name, email, id) {
AllUsers[ id] = {
id: id,
name: name,
email: email
}
}
var userId = 123, userEmail = "zuk@facebook.com";
AllUsers[ userId].email = userEmail;