Formated and added comments to JS scripts implementing sub-navigation bars