JS for mobile

added javascript to make illustration display properly on mobile