Update control.js

added function: change color when click