re-ordered loading of js files