expose 'then' for closure-compiler