loading scripts from header so ng-cloack works