Rewrites js-array-creation for the datepicker

This change will make this easier to maintain and more accessible for
similiar tasks.
Created an oop representation of the lists at bottom
Adopt the original layout to the new lists implementation