Fixed .trunc error on Chrome