This line

```
$('.current').val(page + ' of ' + @lastPage);

```

causes the last parentheses to get underlined with the red squigly that says "Syntax error", and nothing more.

However, THIS line

```
setPage(@lastPage);

```

works perfectly fine.

What the heck is up with that? It's causing the scripts in my view to stop working completely, and is rather frustrating.

Could anybody shed some light on the subject, please?