Enable convert closure to JavaScript

Enable convert closure to JavaScript