Javascript and ajax work as desired

got the adding items to be responsive & set up for checking whether the user is the owner of a wishlist