Start redirection with javascript