PROV-558 Check target types rather than subject types
PROV-557 Fixed type in jquery selector that was triggering cascade of javascript errors on browsers in windows