<html>
    <head>
        <title>Demo</title>
        <script src="dist/counter.js" type="text/javascript"></script>    
    </head>
    <body>
        <h1>CountJs Demo</h1>
        <h2 id="counter"></h2>
        <script>
            var counter = new Counter();
            counter
                .animate()
                .count(128)            
                .onUpdate(
                    function (newNumber) {                    
                        document.getElementById('counter').innerHTML = newNumber;
                    }
                )
                .run();
        </script>
    </body>
</html>