small code simplification
small code simplification

albrow/gopherjs,gopherjs/gopherjs,gopherjs/gopherjs,albrow/gopherjs,gopherjs/gopherjs,bpowers/gopherjs,bpowers/gopherjs,bpowers/gopherjs,gopherjs/gopherjs,albrow/gopherjs,gopherjs/gopherjs