This feels like this should be a view, and loaded from the calendar/js/views directory. @lightsofapollo - what do you think?