Now hides layers with style "display:none"
Layer opacity now respected.
Use LinkedList instead of synchronised Stack.