BUG: months are 0-based in javascript.