fixing js not rounding values for window sizes