Make plugin backwards compatible with Stash version lower than 2.8

* Fix js error on pull request page
* Bind trigger button on document.ready

https://answers.atlassian.com/questions/272177/stash-pull-request-is-blank-how-can-i-see-the-details-of-the-pull-request