Does that happen for all the pages or just certain pages.

Try stopping the javascript but I am sure it has to be something else who is doing the redirect.