use appendRule or insertRule depending on browser
Merge pull request #1 from slapyo/patch-1

use appendRule or insertRule depending on browser