JavaScript unit test file

This file tests template.js.