re #87 - adding JS for changing viewports on mobile and store in localstorage