Refactored Ajax dynamic list