replace php header modifier by JS