fix up directories again, make nav javascript functional