Add currentScript to document in browser's def

Useful when write components using HTML import.

https://developer.mozilla.org/en-US/docs/Web/API/document.currentScript