Fixed broken Javascript for the UniqueId functionality.