Math.trunc not supported by IE11
Created by: epiclabsDASH
Fix #2732 (closed). IE11 doesn't provide an implementation for Math.trunc so we can't use it without checking its existence. I am not creating the typical "MathUtils" class that exports a trunc method to avoid overcomplicating the solution. We will re-think that in case trunc is used in more places of the code.