Edits the navigation bar javascript to recognize the main resource path and sets it active.