Update controller.js

Maybe like that is better, otherwise is not possible to disable shadow after setting it.