Alternatively:

```js
var wideMode = $(window).width() >= 768;
```