Changed max width
DOMContentloaded is more reliable than window.onload
Fixed bug that allowed clicking list items multiple times