Fixed some runtime issues

Those files had runtime issues with jquery under MW 1.24.

 - Changed some jQuery method calls because they do not exist anymore
 - Readded removed code in widgetbar

Change-Id: I50d33f8d81828bc448b3251760e154cacf4d5581
Merge "Fixed some runtime issues"