BK-1277 Sections should not be nested inside of other Sections in the Table Of Contents

One little fix and some jshint fixes