Updated models and ajax.js