Use $timeout instead of _.defer in order catch changes in digest cycle