change jQuery method live() to on() since it was deprecated in 2011