fixed #105 and #265 + bug fix with opening bibliography + refactored $.append() calls
Merge pull request #279 from MichaelKalygin/bugfix105

Bugfix #105 and #265 + bugfix with opening bibliography.