Updated for Weatherwax

Casper's patches:
https://www.dokuwiki.org/plugin:securelogin#patched_javascript_for_dokuwiki_weatherwax