Screen-width breakpoints for javascript functions