fix issue with matchheight.js on page reload, move script to header partial