gen_gcalep_link.js: Fix bugs.