Inventory bugs, new utilities file, new inventory file

Several cross-browser inventory bugs fixed.

new files: pl_utilities.js for global utilities
and pl_inventory.js for the inventory object.  All other objects still
in pl_objects.js