Bug Math.trunc() bug

Bug with this function in other browser than Firefox.