Common utility code for JavaScript and .net, used across other llibraries.