Ensure d3 is loaded before loading layout cloud.

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>