Your DGMap.js script isn't external, you should use `file` as data parameter instead. drupal_add_js('sites/all/modules/GoogleMapByDave/DGMap.js', 'file'); or use an absolute path. drupal_add_js('http://example.com/yourscript.js', 'external');