After some additional troubleshooting, I have found that things improve by including in the footer all the JS created by the render_js function. I am continuing my testing but this makes me believe there is a conflict in the order in which JS is loaded so the priority may have to change for the ai1ec scripts to make it less fragile