         });
     
     return buffer;
-};
+}
 
 /**
 * Creates a vertex array, which defines the attributes making up a vertex, and contains an optional index buffer

    func createVertexBuffer(array: SerializedArray? = nil, sizeInBytes: Int? = nil, usage: BufferUsage) -> Buffer {
        return createBuffer(.ArrayBuffer, array: array, sizeInBytes: sizeInBytes, usage: usage)
    }
/*
/**
* Creates an index buffer, which contains typed indices in GPU-controlled memory.
* <br /><br />

* var buffer = context.createIndexBuffer(new Uint16Array([0, 1, 2]),
*     BufferUsage.STATIC_DRAW, IndexDatatype.UNSIGNED_SHORT)
*/
    func
Context.prototype.createIndexBuffer = function(typedArrayOrSizeInBytes, usage, indexDatatype) {
    //>>includeStart('debug', pragmas.debug);
    if (!IndexDatatype.validate(indexDatatype)) {
