added js functionality to header links