Kendo DataSource - Local

HTML

<script src="http://cdn.kendostatic.com/2013.2.716/js/kendo.all.min.js"></script>
<!-- Demo created for the book: Building Mobile Applications Using Kendo UI Mobile andASP.NET Web API.
http://www.packtpub.com/building-mobile-applications-with-kendoui-html5/book -->
<div id="output"> 

<div>
<button id="btnDo">
View
</button>
<button id="btnRemove">
Remove
</button>

JavaScript

//var app = new kendo.mobile.Application(document.body);   
   
var videoGames = [{
    name: "Need for Speed: Underground",
    year: 2004,
    copiesSold: "1.10 million"
}, {
    name: "Halo: Combat Evolved",
    year: 2001,
    copiesSold: "5 million"
}, {
    name: "Grand Theft Auto Double Pack",
    year: 2003,
    copiesSold: "1.70 million"
}];
var videoGamesDS = new kendo.data.DataSource({
    data: videoGames
});
videoGamesDS.read();
    
 $('#btnDo').click(function(){
 		console.log(videoGames.length);
 			console.log(videoGamesDS.total());
 });
 $('#btnRemove').click(function(){
 videoGamesDS.remove(videoGamesDS.at(0));
 });
    //alert(videoGamesDS.total());