Added var deferred to comply with 'use strict'. Accidental miss