You can use send any js script to footer.
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);
Reference url : https://joomla.stackexchange.com/questions/371/adding-javascript-file-in-the-footer-custom-styles