Fixed bug with deprecated jQuery.live method (use jQuery.on instead).