Tweak blog page

- move scripts to their own block.
- indentation
- remove obsolete </div>
Fix JS error form missing prev/next elements