$timeout is not a function