[#60] minor fix to try to prevent foundation-dependent javascript from executing before foundation is ready