Joomla module with ajax and jexec
===

I've developed a login module using AJAX. One of the functionalities is username availability checking. Of course this makes use of an external PHP file, containing the line: 

    defined('_JEXEC') or die;

This is causing all the trouble. And this line has to be in there. As you know AJAX cant call this file, access denied..

Some people say I have to make an component, but I prefer to avoid this.

What are my options?
