Revert to using jQuery for window width and height, since using innerWidth and innerHeight caused sims (molarity and BLL) to crash on iPad. JO and CM bisected and came up with this as the culprit, but no idea why it causes a problem.