Replaced deprecated live() with on()
Merge pull request #4 from janimattiellonen/fixed-deprecated-live

Replaced deprecated live() with on()