Rewrote responsive behaviour in JS