changed live to on in js