Javascript tag update