added ajax example and simplified selector html stuff