Moving loader to it's own file for AJAX.
Registering methods with the loader.