seperating calender js out of views