Select the navbar parent in js and add a class

This will keep us from having to add extra markup for no reason. I
allowed for a jQuery object and string selector, also added a nice error
in case something else was put in there.