Update mt-data-api.js.

* Remove useless variable
* Fix coding style