add Javascript specs for pair sum