Fix for duplicated event triggered when using ajax.
Fix comma
Refactoring fix
Merge pull request #4 from speixoto/master

Fix for duplicated event triggered when using ajax.