Improved UI of Javascript

UI still needs work -- either the loops block, or become inaccurate
through sync errors. Need to refactor to be either more event-based, or
to use more callbacks.

UI and stylesheet is essentially finished.
Essentially finished javascript implementation and ui, but it's buggy

Todo: rewrite, using more events, callbacks, and shifting the algorithm
to a webworker.

It's also buggy for some reason.