fix js from @fat feedback for modal