Add JS to make navbar collapsing work right.