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.