corrected the getdetails.js

Corrected the conflicting code.