make it work with gopherjs 6953bbe1affc8578a508c4ec0a7758659850d4b0