Fixing getScript code

getting complaints of the getScript code not working