<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.1/ember.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body> <script type="text/x-handlebars">
<h1>{{App.name}}</h1>
<h2>{{App.secondsOnPage}}</h2>
</script> </body>
</html>
var App = Ember.Application.create() App.name = "Hello World!";
App.secondsOnPage = 0; setInterval(function() {
App.set('secondsOnPage', App.get('secondsOnPage') + 1);
}, 1000);