check if clicked is element
Merge pull request #7 from craigspaeth/master

check if clicked is element