Convert select manager to JS

b6127cf from pairing with Dominic.