Detect changes better in src/raptor-widget.js