refine the js library for bandwidth test.