cleaned up the ajax method (reused core ember-data)