Cross-browser currentStyle/getComputedStyle implementation