title: Timeout-Dialog.js issue
body: <p>I am implementing <a href="http://rigoneri.github.io/timeout-dialog.js/" rel="nofollow noreferrer">Timeout-Dialog.js</a> in <strong>ASP.NET MVC 5</strong> project.</p>
  
  <p>So at my layout page I have got</p>
  
  <pre><code> &lt;script type="text/javascript" language="javascript"&gt;
  
          $(function () {
              Timer();
          });
  
          function Timer() {
              console.log("Set Timeout");
              setTimeout(TimeOut, 10000);
          }
  
          function TimeOut() {
              $.timeoutDialog({
                  timeout: 1,
                  countdown: 60,
                  keep_alive_url: '@Url.Action("KeepAliveSession", "Account")',
                  logout_redirect_url: '@Url.Action("Login", "Account")',
                  logout_url: '@Url.Action("LogOff", "Account")',
                  restart_on_yes: true
              });
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>And I include all files into <code>BundleConfig</code>.</p>
  
  <pre><code>   public static void RegisterBundles(BundleCollection bundles)
          {
              bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                         "~/Scripts/jquery-ui.min.js",                       
                         "~/Scripts/jquery.dataTables.min.js",
                        "~/Scripts/dataTables.jqueryui.min.js ",        
                        "~/Scripts/timeout-dialog/js/timeout-dialog.js"
                        ));
  
      bundles.Add(new StyleBundle("~/Content/css").Include(
                     "~/Content/bootstrap.css",
                     "~/Content/site.css",
                     "~/Content/main.css",
                     "~/Content/jquery.dataTables.min.css",                
                     "~/Content/jquery-ui.css",
                     "~/Content/dataTables.jqueryui.min.css",
                     "~/Scripts/timeout-dialog/css/timeout-dialog.css"
  
                 ));
  </code></pre>
  
  <p>The dialog appears in time but when I press any of button I am facing this error.</p>
  
  <blockquote>
    <p>Uncaught Error: cannot call methods on dialog prior to initialization;
    attempted to call method 'close'</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/njNzj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/njNzj.png" alt="enter image description here"></a>
  Any clue how to fix it?</p>