fix Viewer.rm
move initialization of buffer

Float32Array and Uint16Array are not available in many browsers.
Do not mention them before we are sure the browser supports
WebGL. Fixes WebGL support detection in IE and other browsers
without WebGL