javascript removing the header, to improve the performace