Allow script text to be selected

Danny's fix broke selection of the script text, this commit fixes that