Adding protection in server-host so it knows if it's being loaded in node or a browser