Make sure the basePath is set so AJAX works.