Add script load handler.