refactored javascript to remove ChildPromptItemsController