Fix for Jazzcat to handle scripts that have onload handlers attached