fix foundation load scripts