added templates to widgets js