date params work in js