use $(this).closest('form') to find the right form

Fix the checkout javascript - use "$(this).closest('form')" to locate the exact form of the plan that is clicked, not the last form.