<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script> function sample(){ google.script.run .withSuccessHandler(function(x) { a=x[0][0]+x[1][1]; $("#memo").html(a); }) .withFailureHandler(function(msg) {}) .doc(); } </script>