Remove rangy, and revert queryCommandState with firefox