Created function to check for hashtags in the URL if JS is on and dynamic list is built.