A NAME in URL was causing sidebar menus to collapse on refresh

Using an A NAME tag to reference a link on the same page was causing
the sidebar menu options to collapse on refresh.  This change takes the
provided docUrl variable in the documentation.js javascript and strips
all characters after the "#" sign.