updated "live" method to be compatible with the newer jQuery versions (in which the live method is deprecated)