implement date_part/Extract in JS; fix ifNull/Coalesce

Yes, except that I'm still not sure I really was fixing a bug here, and I thought there might be something of value in those two lines...

With no tests failing, I'm still tempted to just use `s()` no matter what.

&lt;shrug>