Fixed remove selected_values

Fixed indentation for selected_values, added var to region code.js
Fixed selected_values function