Added a fix where the widget wouldn't work when it was inserted through a wysiwyg field