Leveraging JQuery for URL referral