change javascript closure test to reflect result from more recent versions