Added working mage.js