Improve JQuery selectors in metridoc-core

Use cached selectors and more efficient syntax to adhere to jQuery best practice.

#106
Improve JQuery selectors in metridoc-rid

#106
Update application.js

Added semicolon
Merge pull request #114 from metridoc/jquery_selectors

Jquery selectors