Fixed JavaScript for perform test