Adding $destroy handler to make sure the widget is destroyed when the scope is detroyed.
Fixed event handling which was broken by removal of underscorejs dependency.