Update control.js

Following the exercise exactly