Use new var 'j' in inner for-loop.

Previously used 'i' which conflicted with outer for-loop.
Rename conflicting var 'options' to 'selectOptions'

'options' already defined in the function signature.
Merge pull request #10 from barwin/dedupe_variable_names

Dedupe conflicting variable names for forms with multi-select fields