Create screen breakpoints in javascript and easily react to changes in the viewport