Update coffeescripts and add templating test case