fixed JavaScript import issue for Foundation