title: Trying to get asm.js to return a typed array
body: <p>I am using emscripten to generate some Javascript, and I was trying to figure out how to get function that returned a typed array.  The array I am attempting to return is of static length, but I am a bit confused how a pointer based return type will be treated in JS land. </p>
  
  <p>Is this sort of wrapper the way to do things:
  <a href="https://stackoverflow.com/questions/16586273/how-do-i-access-the-emscripten-typed-array-from-javascript">How do I access the Emscripten typed array from javascript?</a></p>
  
  <p>Much thanks.</p>