Added inventory.js for inventory page client-side handling