As explained on https://www.dokuwiki.org/devel:javascript#using_ids IDs may not clash with headlines. To avoid that all IDs have to use two subsequent underscores.