Update items.js

adding some functions that may be needed + what they should basically do