JavaScript client library implementation for AeroGear