Cleaning up the JS a bit here with the handleDrsItems method