Added more javascript to wardrobe code.