Move main.js into _js.html (one less external resource) and include Django context vars as messages.