Translate select manager spec CS -> JS and DRY up the select manager a bit