call onSelect/onInvalidate... with originalElement as 2nd/1st param (equals to element in case HTML-select "conversion" is not used)
use jQuery.map instead of Array.reduce as latter is not available in IE8
Demo: avoid using ajax for local lookup (no change to core autocomplete)

Some Browser don't allow ajax when opening a page from the local filesystem. So local lookup demo now works in this scenario.
Merge branch 'master' into select-converter

Conflicts:
	scripts/demo.js manually resolved
fixes in HTML-select converter