take care of javascript redirects