Api for development in js on magento