JavaSpace

* Update JavaScripts to facilitate testing (which is still a WIP).
* Fix some spacing inconsistencies.