fix javascript errors caused by using deprecated/removed jQuery.fn.live