Changed the way data attributes were retrieved from an xml element, as the previous method didn't work in IE8.
Fixed bug where setting displayInHomeMenu to false was actually being detected as true.