Use angular's $timeout service