fix calendar to pass reagion to js