Update code for Firefox 36.

See: https://github.com/piroor/treestyletab/pull/777