return Delete JSON not only on ajax (for angularjs)