Fix middleware JS error.
Merge branch 'js_honeypot' into localwiki