Fixed issue #22 from the main repo.
Context constructor called once with all the elements for it instead of separately for each element that meets the selector.
Fixed the before callback to have the proper elem parameter when called, broken in commit 9489358 that fixes issue #22
Merge pull request #23 from ninio/master

This fixes the issue #22