[WIP] Make js works for calendar