javascript control for folder nav

Completes Prototype of #345