Updated require.js
Changed initialization of require.js
Added trigger "ajax.success" and "ajax.error" for handle magic ajax calls