Refactored d_control.js
Merge pull request #19 from matao/UpdateController

Refactored d_control.js