When a layer cannot be loaded it's checkbox is disabeld and styled.

Also added a test to see if the browser supports HTMLElement.dataset
property.