micro JavaScript style-getter function