Fix js errors and make the month view more mobile friendly

#16