modified wpdetails.js and removed unused files