moment error in pikaday module AMD