Added functions to use for JSON to calendar page