Updated is_external to behave as a jquery filter instead of a function