Further improved the subnav JS.