Javascript catching changed to live mode