Update inventoryCtrl.js

prevents display bug (hopefully), example:  http://i.imgur.com/ilRPzdz.png

I can't test this, however, because my machine isn't letting me install Mongo for some reason.  I'd be very surprised if there was a difference between theory and practice here, however.