Moved navigation js out of this file into navigation.js