load JS files dynamically (with dependencies)