Replaced $.live with $.on, because $.live was removed in jQuery 1.9