Update the JavaScript API from version 3.11 to 3.12

** Note: This is untested. Version 3.12 has not been officially announced at the time of this commit. **