Make the menu javascript faster

It's faster to select all of the navbar-menu items and get their
parent/sibling elements than it is to select all possible parents and
use `.has(child)`.  Prooflink:
http://jsperf.com/childern-parent-vs-parent-has-child