Round the value to prevent a Firefox error

The 'bytes' value for my data was ending up as a decimal, e.g. 415.5. I found that Firefox was erroring on this value; Chrome seemed to handle it in stride. By applying Math.round() to the bytes variable, Firefox got a lot happier.