fixed grid navigation javascript
misc fixes