Added support for custom template of the files injected.

This is useful when you want to inject the script with a custom script loader (like LAB.js or similar).

Signed-off-by: Jesus Merino <jesus@touristeye.com>