Small refactoring.
Small refactoring.

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