.live() is deprecated, using .on(), fixed (v2)

Stof is right, my proposed fix was incorrect. Changed it the way Stof proposed.
Merge pull request #1147 from jeroenvds/patch-2

.live() is deprecated, using .on(), fixed (v2)
add class to compile
Update composer.json
Fix composer.json
Fix composer.json