cleaning up item.js