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. **
Merge pull request #331 from cmv/feature/update-to-JS-API-v-3.12

Update the JavaScript API from version 3.11 to 3.12