implementing ajax with hackernews