Save update button js