changed js, all working except getDetails