title: how to close jquery Lity using .close()?
body: <p>I am using Lity as the popup form, but I could not close the popup using the .close() API, afterwards. How can I close, the Lity popup, by calling the .close() API, with the 'close' button? Thank you in advance!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('a').on('click',function(){lity('#lity').opener();});
  $('button').on('click',function(){
    //do something
    lity('#lity').close(); //this is not working
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/lity/2.3.0/lity.min.css" rel="stylesheet"/&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/lity/2.3.0/lity.min.js"&gt;&lt;/script&gt;
  
  &lt;a href="#"&gt;surprise&lt;/a&gt;
  &lt;div id='lity' class='lity-hide'&gt;&lt;button type='button'&gt;close&lt;/button&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>