If we're using the HTML 5 date component, is this necessary? I think some (at least) of what you're doing will be handled by that control, appropriate for mobile/desktop. (Localization, setting the starting week of the picker, etc.)