added AJAX to products resource