Modified extractEmbeddedItemIds() to use $.map instead of core JS map() -- IE doesn't like the core map().