Create document.currentScript.js

Originally from https://gist.github.com/JamesMGreene/fb4a71e060da6e26511d