add and remove stock working with angular-ajax