Add Benchmarkjs and fix a bug