small refactoring
small refactoring

gopherjs/gopherjs,ebroder/gopherjs,albrow/gopherjs,nmfzone/gopherjs,nmfzone/gopherjs,flimzy/gopherjs,ebroder/gopherjs,gopherjs/gopherjs,gopherjs/gopherjs,govlas/gopherjs,gopherjs/gopherjs,albrow/gopherjs,nmfzone/gopherjs,Archs/gopherjs,Archs/gopherjs,roth1002/gopherjs,albrow/gopherjs,flimzy/gopherjs,rasata/gopherjs,bpowers/gopherjs,govlas/gopherjs,jargv/gopherjs,rasata/gopherjs,Yanjing123/gopherjs,ebroder/gopherjs,bpowers/gopherjs,jeremyschlatter/gopherjs,govlas/gopherjs,Yanjing123/gopherjs,rasata/gopherjs,roth1002/gopherjs,Yanjing123/gopherjs,Archs/gopherjs,bpowers/gopherjs,jargv/gopherjs,flimzy/gopherjs,roth1002/gopherjs,jeremyschlatter/gopherjs,jargv/gopherjs,gopherjs/gopherjs,jeremyschlatter/gopherjs