Javascript cleanup, editor auto-evaluation

Took the first step in what will probably be a large overhaul of the
javascript program flow. Changes to the editor are immediately
executed. See also, issue #4