   event.target.transaction.onerror = function() {
            window.webkit.messageHandlers.testHandler.postMessage('Transaction errored!');
        }

        store.put("bar", "foo");
    }
}
</script>
