MAGE's javascript client