Update ajax.js

Added `options.dataType = 'json'`