Javascript api to better manage javascript based on media queries.