Fix a bug in the thin-client script selector, where the list would
keep adding the same scripts with each refresh