Update app/assets/javascripts/models/base.js

Add error function during XHR request, add validateWip flag in FormView component