use object oriented tocreat a InventoryText.js