js file updated for smallest media query