You can buy this project and download/modify it how often you want.
Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)};