A few tweaks/examples.
Moved script loading out of template generation.
Merge pull request #12 from wbyoung/fix-tests

Fix tests