adding template widget.js files

Forgot the template versions of the same file