Enable date picking by JavaScript