add functionality to get contents of js files

This will allow https://github.com/nrstott/bogart-form-warden to inject the script from FormWarden without having to guess the location.