add javascript for header.