Convert select manager to js

b6127cf from pairing with Dominic.