Updated index.
Fixed syntax errors (V8 lacks `let` keyword) and added convenience this.type method.