Moved the 'deformInsertBefore' tag outside the ul because the selector is so fragile.