Update Javascript Objects