Minor template fix

Moved month offset from Javascript to Jinja