Moved scripts back to header