Added tv update api to update controller and removed debug messages in js