javascript redirect on unversioned page url