* add trailing semicolons to function definitions in Api.js