Control JS with mediaqueries