hub calendar javascript