Removed JS error on pages without sort button (es5 and non-standard); cleaned code
Merge pull request #111 from victor-homyakov/gh-pages

Remove JS error on pages without sort button (es5 and non-standard)