Javascript used to completely render calendar