how to use offline database with javascript code example

Example: how to use offline database with javascript

// Cache Action
public ActionResult Manifest()
     {
         var manifest = "CACHE MANIFEST" + Environment.NewLine +
            "# App Version: " + System.IO.File.GetLastWriteTime
            (Server.MapPath("~/Views/Home/Index.cshtml")) + Environment.NewLine +
            "# Server Assembly Version: " + this.GetType().Assembly.GetName().Version + 
        Environment.NewLine +
            "NETWORK:" + Environment.NewLine +
            "*" + Environment.NewLine +
            "CACHE:" + Environment.NewLine +
            Url.Action("Index", "Home") + Environment.NewLine +
            Url.Content("~/Content/site.css") + Environment.NewLine +
            Url.Content("~/Content/bootstrap.min.css") + Environment.NewLine +
            Url.Content("~/scripts/jquery-1.7.1.js") + Environment.NewLine +
            Url.Content("~/scripts/bootstrap.min.js") + Environment.NewLine +
            Url.Content("~/scripts/bootbox.min.js") + Environment.NewLine +
            Url.Content("~/scripts/db.js") + Environment.NewLine +
            Url.Content("~/scripts/Config.js") + Environment.NewLine +
            Url.Content("~/scripts/DbManager.js") + Environment.NewLine +
            Url.Content("~/scripts/index.js") + Environment.NewLine +
            Url.Content("~/scripts/jquery.blockUI.js") + Environment.NewLine +
            Url.Content("~/scripts/cache.js") + Environment.NewLine;

         return Content(manifest, "text/cache-manifest");
    }