get list length using jquery
add list length into classname determination
refactor bgcolor assignment on adding a list item