Update main.js

.live is deprecated .on is current.