Global edit JS catch