Port of ms.js to Go.