It would be better to use `$.getJSON()` here so you can put the returned JSON into a JavaScript obj:
```javascript
var latest = $.getJSON('/js/spice/xkcd/latest');
```

Then using that you can quickly compare the `num` from `latest` to the current comic's `num` and pass along the result to the handlebars template, which is capable of a basic `if` statement:

```javascript
api_result.has_next = latest.num > api_result.num;
```

Then in your Handlebars you could check if we need to show a "next" link and do so when needed:

```html
{{if has_next }}
...
{{/if}}
```