I'm working with the Foundation Framework and I was wondering if there are any callbacks or functions that will deliver jQuery or javascript based on the current screen size or media query.

For example

```
if ('screen_size' =< 'small') {
  // do some jquery
} 

```

Not sure if this is possible.
Any Ideas?