jQuery Solution to get info from URL and plot graph