Make it generate a native JavaScript function