Add choice() tests to other languages, clean up JS warnings