Added support for extended date selection in JS