Fixed JS-redirect