Got front-end AJAX calls working properly