Updated to work with new jQuery

Changed live to on as it's now deprecated.