Fixed a javascript issue with the top bar.