Added javascript func to handle getting url vars and showing in the page