added truncate js file