replace javascript feature test example