Minor improvements to Tag updating JS