redid the js for populate keys