Viks can not edit widgets in fire fox 21.0

https://github.com/ari/jobsworth/issues/434
The widget edit options appeared like images in firefox becasue they were not getting focused when clicked. Changes to the javascript included in this commit.