Javascript Unit Test for Templates