dynamic js in widgets.py