Moving nav javascript to eof