adding basic inventory listing; moving inventory API out of startup.js