A script to run functions when a resolution changes
flexbox and dynamic ordering of html elements, using javascript