Add JS to drupal 7

Submitted by barnettech on Tue, 05/16/2017 - 11:55

drupal_add_js(drupal_get_path('theme', 'mytheme') . '/js/file.js',array('type' => 'file','scope' => 'footer'));

for easy reference.