ensures admin javascript only attempts to call autocomplete when the appropriate target exists