Replaced deprecated getElementsByClass with jQuery

See Issue #4 and
https://www.dokuwiki.org/devel:jqueryfaq#getelementsbyclass