fix getMonth problem in js