add support for jstrace
fix reseting of buffer
0.1.2