Use $window.setTimeout instead of $timeout (fixes #19)