title: jQuery plugin not working in Joomla 3 module
body: <p>I am trying to implement a jQuery plugin for converting tabs to responsive accordion in my Joomla 3 module. The plugin is called <strong>Easy Responsive Tabs to Accordion</strong> (<a href="https://github.com/samsono/Easy-Responsive-Tabs-to-Accordion" rel="nofollow">https://github.com/samsono/Easy-Responsive-Tabs-to-Accordion</a>). I have correctly included the required css and js files in the module but it's not firing up the plugin for me.</p>
  
  <p>In the module's <code>tmpl/default.php</code>, I've included the scripts as below:</p>
  
  <pre><code>$document = JFactory::getDocument();
  $document-&gt;addScript(JURI::base() . 'modules/mod_mytest/js/easyResponsiveTabs.js');
  $document-&gt;addScript(JURI::base() . 'modules/mod_mytest/js/jquery-1.9.1.js');
  $document-&gt;addStyleSheet(JURI::base() . 'modules/mod_mytest/css/mytheme/easyResponsiveTabs.css');
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $('#horizontalTab').easyResponsiveTabs();
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I also have the correct HTML markup in <code>tmpl/default.php</code> as shown in the docs.</p>
  
  <p>When I download and run the plugin, it works fine but when I integrate it in Joomla, it fails. I may be missing some simple steps while integrating it but I am unable to figure it out.</p>