Adds a smarter script source finder that looks for the d2.js script to find the script path