establish a single global variable implementation for webGL