track javascript redirects