render has a default value of base url
generate widget.js