Gets the site collection that is associated with the client context.
var value = SP.ClientContext.get_site();
Type: SP.Site
SP.ClientContext Class