Fixes #31 - removes deprecated srcElement reference.