Added initCalendar method to Calendar.js and Calendar.java