No need to release newscript here (the setscript() method is not being 'given' the stringref).