fix javascript Date() usage (really, January is 0?)