Move Function extensions in async.js into a Model.