Updated truss.js and edited logic