Fix onbeforechange callback receiving the wrong element
Merge pull request #154 from rockerest/master

Bugfix: fixes Issue 152