Improve admin.js

What this pull request includes:
* improve `jQuery` usage
* cache `#tab_PDF` elements
* use `#tab_PDF` element in `switch_tabs` function
* remove superfluous semicolons