added another constructor to item.js