Fix issue with previousElementSibling
Merge pull request #184 from arv/previous-element-sibling

Fix issue with previousElementSibling