You can use send any js script to footer.
Code :
[code] $doc->addScript($modulePath.'js/currency.js', array(), array("defer" => "defer")); $options=array( "type"=>"text/javascript", "defer"=>true, "async"=>false, "depends"=>array("jquery","jquery-ui"), "provides"=>"jquery-animation" ); JFactory::getDocument()->addScript($url, $options); [/code]
Reference url : https://joomla.stackexchange.com/questions/371/adding-javascript-file-in-the-footer-custom-styles