An example of resizing a HTML list according to window size using pure JavaScript