Fix Google Chrome Javascript errors with jscalendar library

Only comment on reviewing this PR: Good luck!

In short, chrome's blocking raw strings, in settimeout calls so add a 3 wrapper functions to avoid.