Moved header js into it's own seperate file