Fix IE8 bug during unitless CSS props creation

Also reverted forEach back into vanilla for loop, as it seems more used in the codebase.