Load Javascript dependencies dynamically