use moz-minor-mode in javascript