Move JS loading from footer to header