I've seen the answer here using the NID but I don't know this, I only have the URL. Is there is another way to do this please?
function MY_THEME_preprocess_node(&$vars) {
if($vars['nid'] == 'XX'){
drupal_add_js('path/to/js/file.js');
}
}