Fixed the mutation observer to look at the child elements too. Refactored the code a bit. Added new tests and fixed the test helper method mouseDown to fail better way when element is null.