Module hook to add_js to any entity type?
hook_entity_view() should do the trick


  Act on entities being assembled before rendering.


e.g.

function MYMODULE_entity_view($entity, $type, $view_mode, $langcode) {
  switch ($type) {
    case 'node':
      ...
      break;
  }
}