Cache velocity data

Avoid reading the velocity JSON data after the first time through by caching it in memory.

Also cleans up tabs to spaces in js file.
Is this the only real change here? And don't most browser do this automagically? They might not of course, probably wouldn't hurt to cache them, but I think Chrome does.