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.
I just meant that I don't see Chrome making more than one request per json file, regardless of the number of loops. At any rate, this is good if we're keeping an eye on performance.