webui-schedule: javascript foo recoded in jquery