updated javascript and added a toggle for month navigation