inventory js