Made changes to js and photo for records section