adding call to foundation javascript