lazy loading of js files, kept attfactory as old reference