Add javascript footer and remove header