synchronous loading of JS files