Converted PHP back to HTML with JS Redirection