Replace $("a.foo").live("click", fn) by $(document).on("click", "a.foo", fn) because live is deprecated in jQuery Core 1.9
Replace $("a.foo").live("click", fn) by $(document).on("click", "a.foo", fn) because live is deprecated in jQuery Core 1.9