fix javascript removal of live and replaced with on