spawnFunction is still not supported by dart2js, it is supported when run in Dartium