added js code to the lists