Remove unnecessary require which was breaking AJAX script