Looks like fairly standard JavaScript JQuery running in a browser : var query is a dynamically built string where $("#daysBack").val() is most likely the value inputted or held in the html form element with 'id="daysBack"' $("#chartContainer").load("/statistics/typedistributionchart?" + query); is then calling the url query and displaying the returned HTML in a visual element with an 'id=chartContainer' If I were you I'd look at what: http://THE_SITE/statistics/typedistr...111&daysBack=2 returns, assuming a valid user ID of course. Does it return HTML? Will you need to parse out the bits you want from this markup? Does the site offer a cleaner way of getting this data?