Fixed path error that was introduced due to pull request fuckery.

Since github decided it was a good idea to update the pull request
after I had updated the master with a commit that shouldn't be part
of it...
Changed visualization code to not use old JSON-file approach.
Fixed formatting errors.
Wrapped JS in anonymous function call, to prevent namespace clutter.