Kendo UI Mobile base

HTML

<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.mobile.all.min.css">
<script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script>
<div data-role="view" data-before-show="foo">
hello world
</div>

JavaScript

new kendo.mobile.Application();
function foo() {
    console.log("foo");
}