Added function to get the target

Added getTarget function to get the target element
Merge pull request #9 from shankaranbonzer/patch-1

Added function to get the target