Update SelectionManager.js