Include js dependencies in the template and cover MainTemplate with unit tests