Creating ajax requests to get new orders periodically.