Another attempt to fix the getScript problem