jQuery live method has been removed from version 1.9

jQuery live method has been removed from version 1.9, so I replaced it with $(document).on