setting selects from js objects