``$.getScript`` by its own returns a promise object. There's no need to use ``$.when`` here to wrap a single promise.

All you need here is:

``` javascript
$.getScript('{$jsFile}').done(function() {
 // ...
});
```