Add missing dependencies for foundation and add index script tags