Fixed responsive layout.

Always tricky to deal with responsive layouts when using JavaScript to style the elements. Tip: Use window.matchMedia("(max-width: 992px)");