.done() removed, getstockdetails moved to getstockpage callback function