Fix nav generation, consolidated body scripts in div