made AJAX calls only pass JSON