fixed loading of js files