corrected header javascript