For firefox, optlink.search return empty string. Create a function to extract query string and pass to parseQuery function.