Javascript performance testing