Browser testing.

Also add callback to Dynapack.write().