created script/msglist.js to contain a message list's viewer