Fun fact: the month field is zero-based in the Date object. So to get the first of January, you need to do this:
var date = new Date(2000, 0, 1)