adding trunkate.js file