Recompiled JS. Added next handler to writeAfter.