Use asynchronous transport in Thrift.js client

JavaScript thrift bindings need to be generated with js:query rather than
js to get asynchronous XMLHttpRequest support.

Testing Done:
./gradlew clean build && ./gradlew clean run

Bugs closed: AURORA-463

Reviewed at https://reviews.apache.org/r/21828/