Lift browser APIs up to modern levels