Removing pointless code
Using underscore.js
Swapping out `range` for underscore version
New range function means this needs to be -1

Parsing priority error in nunjucks means the -1 has to be wrapped, otherwise you get a template error - should probably file a bug for that