Update selectedOptions.js

Fix for issue 1354