update calculator js