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.
In the previous version the `$.getJSON()` call was always hit, there was no `velocities` array.