add fallback if document.currentScript is not available (e.g. with Webkitties)

Fixes #693
Throwing is nice, but who catches this?
This script is run globally, so throwing here means wodo namespace is undefined.
Since that's exceptional i.e. an unexpected runtime environment or bad setup, showing an alert is permissible in my opinion. At any rate, documenting the expected global outcome here makes sense.