Fixed AJAX request with file directory