diff --git a/app/assets/javascripts/calendar.js.coffee b/app/assets/javascripts/calendar.js.coffee
index d08ef9361a6dbd6989def262c59f0d2143fae6ff..37b7ba2cc10f749b4fc5eceab68ed689a0eaf1c4 100644
--- a/app/assets/javascripts/calendar.js.coffee
+++ b/app/assets/javascripts/calendar.js.coffee
@@ -1,4 +1,4 @@
-class @calendar
+class @Calendar
   options =
     month: "short"
     day: "numeric"
diff --git a/app/views/users/calendar.html.haml b/app/views/users/calendar.html.haml
index 488f49267c7526cea44b9be010fd64c850d68ee1..922b0c6cebf1cb1425ec056195bc15025cf434d2 100644
--- a/app/views/users/calendar.html.haml
+++ b/app/views/users/calendar.html.haml
@@ -4,7 +4,7 @@
     %small Issues, merge requests and push events
 #cal-heatmap.calendar
   :javascript
-    new calendar(
+    new Calendar(
       #{@timestamps.to_json},
       #{@starting_year},
       #{@starting_month},