<!DOCTYPE html>
<html>
<head>
<script src="/lib/jquery-1.12.2.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        return "Hello world!";
    });
    $("button").click(function(event){
        $("p").html(event.result);
    });  
});
</script>
</head>
<body>

<button>Click me to display event.result</button>

<p>This is a paragraph.</p>

</body>
</html>