Replaced deprecated jQuery live() references with on()