jsduck: Refactor example iframe to catch uncaught errors