added separate js file for details2