Cleaned up documentviewer dependency

Stripped out jquery and jquery UI as those are already in the page.
This reduces the size of the documentviewer dependency by about ~100KB

Addressed an issue in api.util.hideOnClickout which was using the wrong
jQuery variable.