Finished Output.js

Maybe working? Will need the HTML hooks.