added quanitity and the initial AJAX send function