Add timeout- example for AngularJS.