Clean up js for modal.