ecmascript/api-v1: Fix typo

Fixes #2331
ecmascript: Rename createMultiopt -> createMultiOpt

Fixes #2329