[fixes #52] templates should be separate modules.
satisfy jshint