Making Loki's automatic base URI detection work when the "loki.js" is not at the very end of the script source.
Making Loki's automatic base URI detection work when the "loki.js" is not at the very end of the script source.

enaeseth/loki,enaeseth/loki,enaeseth/loki