Refactored cart methods to be used for order summary. Trying to get javascript to hide cehckout form on modal hide