Loads scripts, writes actual plugin.