Fixed parsing of JS and other block types.
Added a test for HTML escaping JsValues.
Switched to generating HTML template functions.
Added tests for JS expressions.