use appendRule or insertRule depending on browser