switch addRule to insertRule for firefox compat, fixes #1