Refactored javascript to remove ChildAvailableItemsView