Update script.js

I Made an update on addInv function it shold break out of process if player trays to add same item more time in his inventory