add template plugin and js template