My LogiX is Undeniable.
// This is how to Get Server URL using javascript in CRM 2011
// Get server URL
var serverURL = Xrm.Page.context.getServerUrl();