Add a generic inject javascript method.

Hopefully we can add BetterBattlelog somehow.