Ugly hack to replace jquery ajax loader with angular $http