fix $elem is not defined
Merge pull request #12 from jitowix/master

fix $elem is not defined