updated tutorial.js to include ajax error