Responsive-ish JS wizardry