- Replaced header() with location.href in Javascript