Changed user query to XMLHttpRequest to get starting point