Menu scripting bug fixes

* fix crash in setIsOptionChecked() when menu name doesn't exist
* fix editVoxels.js to correctly cleanup it's menus
* allow JS to position separators before or after other items - closes #2107
* added removeSeparator() to JS