Update list.js

updated alert message when nothing is entered