Update jaffaWidgets.js

Fixed check for whether a jQuery select found something. jQuery selects never return null, they return empty lists.  So testing against null doesn't work, you have to check for non-zero length.