Removed unnecessary introduction of 'context' (window) object in favor of using 'window' directly.