Functions in buffers namespace now return the webgl context object after running side effects.
Update example with the thread macro.