Port of tiny.js in go