defined an undefined variable in list.js and fixed formatting.