Hi, I ended up doing this and it worked great. I have the comment code on here in case someone else desides to use it.
// Grab the querystring if there is one.
var querystring = window.location.search;
// Strip the unwanted data and grab the number.
var querystringValue = querystring.substring(querystring.indexOf("=") +1, querystring.length);
If you are grabbing a number from the querystring, add a -0 at the end or else JS is going to think it's just another normal character that has no numeric value.
// Here we have to add "-0" at the
// end of the variable so that it
// treats it as a numeric value.
var number = querystringValue-0;
Thank you all :)