Make sure that wiki.js removes correct element

Also changed run_at to "document_end" to make it faster.