Functions to help determine screen size for responsive web apps