added support for special window.open URLs, 'record' events and fixed issue #10