using better browser backwards compatibility code

Change-Id: I28a75ffc65ade1c79ffca63729c2107a4a221a77