Made blockcode.js prettier.
Refactored the templates.
Tidied up the views a bit.