fixed issue with Javascript header