Update items.js

added basic item functionality