Subnav block javascript