added the required script to the widget. There may be a better way to handle this but should work for now