Added a DOM "before" metod