Magento Restful API Extension and Angular JS