refactored javascript to remove ChildAvailableItemsController