Fix bugs in bad_app: 'load' not 'onload' event, and invoking script function. Removed extraneous logging.