Fix modal covering header with janky javascript