Use ajaxurl for the dropdown filters on directories, rather than hardcoded URL

This ensures SSL compliance

See #1110