moved js to widget.py