Update control.js

Swapped the hierarchy