I do a lot of HTML generation just with JavaScript and am finding myself creating `index.html` files that have code that looks like this:

     <!DOCTYPE html><html><head><script src="index.js"></script></head><body></body></html>

It would be nice to be able to do:

     browserWindow.loadHTML('<!DOCTYPE html><html><head><script src="index.js"></script></head><body></body></html>');

It would be even more awesome to do:

     browserWindow.loadScript(pathToScript);

I tried to use the `preload` option for `BrowserWindow` and using `loadURL('about:blank')`, but this has an unintended side effect of not allowing you to reference other script or CSS files using relative paths.

What do you think about proposed feature?
atom/browser/api/atom_api_web_contents.cc
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/resource_request_details.h"
#include "content/public/browser/service_worker_context.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/context_menu_params.h"
#include "native_mate/dictionary.h"
#include "native_mate/object_template_builder.h"
#include "net/url_request/url_request_context.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/web/WebFindOptions.h"
#include "ui/display/screen.h"
#if !defined(OS_MACOSX)
#include "ui/aura/window.h"
#endif
#include "atom/common/node_includes.h"
namespace {
struct PrintSettings {
  bool silent;
  bool print_background;
};
}  
namespace mate {
template<>
struct Converter<atom::SetSizeParams> {
  static bool FromV8(v8::Isolate* isolate,