Consolidated all JavaScript form logic, and added toggle on credit card widgets for usability