Cleanup in majorSelector.js