Rewrite module GL to use new v8 api