Expose string type to Javascript.