Revert "Adds deferred.resolve() after setTimeout()"

This reverts commit 8698c8f785ac78e657ed2c851cf3811c58c93fda.