Update messageformat-client.js

Avoid deprecation warnings