Preparing the punches screen for navigation through dates in js