implement date_part/Extract in JS; fix ifNull/Coalesce