removed redundant check in controller.run()
Fixed executing script, removed console.logs