made some various fixes in cross-browser compatibility for GSN