refactor ajax programLog