The original line wasn't working, so I replaced it with a plain-js version.