Replaced die()/live() calls by off()/on() for jquery 1.9