Refactored more.

Refactored and purged all list HTML structure from the javascript.