Removed jquery library from widget media. PEP8 fixes.
Improved js code for the widget.
Merge branch 'develop'