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 "atom/browser/api/atom_api_web_contents.h"
#include <set>
#include <string>
#include "atom/browser/api/atom_api_debugger.h"
#include "atom/browser/api/atom_api_session.h"
#include "atom/browser/api/atom_api_window.h"
#include "atom/browser/atom_browser_client.h"
#include "atom/browser/atom_browser_context.h"
#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/lib/bluetooth_chooser.h"
#include "atom/browser/native_window.h"
#include "atom/browser/net/atom_network_delegate.h"
#include "atom/browser/osr/osr_output_device.h"
#include "atom/browser/osr/osr_render_widget_host_view.h"
#include "atom/browser/osr/osr_web_contents_view.h"
#include "atom/browser/ui/drag_util.h"
#include "atom/browser/web_contents_permission_helper.h"
#include "atom/browser/web_contents_preferences.h"
#include "atom/browser/web_contents_zoom_controller.h"
#include "atom/browser/web_view_guest_delegate.h"
#include "atom/common/api/api_messages.h"
#include "atom/common/api/event_emitter_caller.h"
#include "atom/common/color_util.h"
#include "atom/common/mouse_util.h"
#include "atom/common/native_mate_converters/blink_converter.h"
#include "atom/common/native_mate_converters/callback.h"