Make posts.js testable. Test posts.js. Fixes #5.
Use new syntax for highlighter.