Changed jquery .live to .on

Fix for #345