Adding js templates to support menus